package com.tcs.test.designmodel.proxy.jdk;

import java.lang.reflect.Proxy;

public class JdkProxy {
	
	private JdkProxy() {super();};
	
	public static Object getProxy(Object obj) {
		JdkHardle jdkHeadler = new JdkHardle(obj);
		return Proxy.newProxyInstance(obj.getClass().getClassLoader(),
				obj.getClass().getInterfaces()
				, jdkHeadler);
	}
}
